import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import beans.BodyTemperature;
import beans.HeartRate;
import beans.Pulse;
import beans.User;
import dao.UserDAO;


// git test
public class test {

	public static void main(String[] args) {

		
		//���Խӿ�getPulseList,getHeartRateList,getBodyTemperatureList
		
		UserDAO u=new UserDAO();
		
		List<BodyTemperature> list=new ArrayList();
		
		User user=new User();
		user.setUsername("host");
		user.setPassword("666666");
		list=u.getBodyTemperatureList(user);
		
		Iterator iterator=list.iterator();
		BodyTemperature body=new BodyTemperature();
		
		while(iterator.hasNext()){
			body=(BodyTemperature) iterator.next();
			System.out.println(body.getUsername()+"---"+body.getTime()+"---"+body.getTemperature());
		}
		
	}

}
